package com.heima.model.article.dots;

import com.heima.model.common.annotation.IdEncrypt;
import lombok.Data;
import org.checkerframework.checker.units.qual.C;

@Data
public class UnLikesBehaviorDto {
    @IdEncrypt
    private Long articleId;
    private Short type;
    public enum Type{
        NO_LIKE((short)0),
        CANCEL((short)1);
        private Short value;
        Type(Short value)
        {
            this.value=value;
        }
        public Short getValue(){
            return this.value;
        }
        public static boolean check(Short value)
        {
            if (value==null)
                return false;
            if (value!=NO_LIKE.value&&value!= CANCEL.value)
                return false;
            return true;
        }

    }
}
